package com.hqyj.springboot.modules.account.service;

import com.baomidou.mybatisplus.extension.api.R;
import com.github.pagehelper.PageInfo;
import com.hqyj.springboot.modules.account.entity.Role;


import com.hqyj.springboot.modules.common.vo.Result;
import com.hqyj.springboot.modules.common.vo.Search;
import org.springframework.data.domain.Page;

import java.util.List;

public interface RoleService {

    Page getRolesBySearch(Search search);

    Result<Role> addRole(Role role);

    Result<Role> updateRole(Role role);

    Result<Object> deleteRoleById(int id);

    Role getRoleById(int id);

    List<Role> getRolesByUserId(int userId);

    List<Role> getRoles();

    PageInfo<Role> getRolesBySearchBean(Search search);





}
